﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace KinTN_WMS_CL.UserControls
{
    /// <summary>
    /// BreadcrumbControlView.xaml 的交互逻辑
    /// </summary>
    public partial class BreadcrumbControlView : UserControl
    {
        public ObservableCollection<string> BreadcrumbItems { get; set; }

        public BreadcrumbControlView()
        {
            InitializeComponent();
            BreadcrumbItems = new ObservableCollection<string>();
            DataContext = this;
        }

        private void TextBlock_MouseDown(object sender, MouseButtonEventArgs e)
        {
            var textBlock = sender as TextBlock;
            if (textBlock != null)
            {
                MessageBox.Show($"Clicked: {textBlock.Text}");
                // 在这里处理点击事件，例如更新当前路径
            }
        }

        public void AddItem(string item)
        {
            BreadcrumbItems.Add(item);
        }
    }
}
